/**
 * station
 */
import React, { Component } from 'react';
import { View, Text, StyleSheet } from 'react-native';
import MeApp1 from '../me/MeApp'
import OrderApp1 from '../order/Order1'
import ShopApp1 from '../shop/Shop1'
import {moduleName} from '../../../constants'

class Station extends Component {
    render() {
        let componentName = moduleName.MODULE_NAME
        let args = moduleName.ARGS
        console.log(componentName,args)
        if (componentName === 'MeApp1') {
            return (
                <MeApp1 args={args} />
            )
          } else if (componentName === 'OrderApp1') {
            return (
                <OrderApp1 args={args} />
            )
          } else if (componentName === 'ShopApp1') {
            return (
                <ShopApp1 args={args} />
            )
          } else {
            return (
                <Text>没有找到对应的组件</Text>
            )
        }
    }
}


const styles = StyleSheet.create({
    container: {
        flex: 1,
        justifyContent: 'center',
        alignItems: 'center',
        backgroundColor: '#2c3e50',
    },
});


export default Station;
